<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="admin/common/header::commonHeader">
<meta charset="UTF-8"></meta>
<title></title>
</head>
<body>
	<div id="wrapper">
		<nav class="navbar-default navbar-static-side" role="navigation" th:include="admin/common/menu::menuDiv"></nav>
		<div id="page-wrapper" class="gray-bg dashbard-1">
			<div class="row border-bottom">
				<nav class="navbar navbar-static-top" role="navigation" th:include="admin/common/top::topDiv" style="margin-bottom: 0"></nav>
			</div>
			<div class="row">
				<div class="col-lg-12">
					<div class="ibox float-e-margins">
						<div class="ibox-title">
							<h5>公众号粉丝列表</h5>							
						</div>
						<div class="ibox-title">
							<button class="btn btn-primary" id="syncFan" >同步粉丝</button>							
						</div>
						<div class="ibox-content">
							<div class="table-responsive">
								<table id="fanDt" class="table table-striped table-bordered table-hover">
									<thead>
										<tr>											
											<th>头像</th>
											<th>粉丝昵称</th>
											<!-- <th>关注时间</th> -->
											<th>关注状态</th>
											<th>分组</th>
										</tr>
									</thead>
									<tbody>
										<tr class="gradeX"  th:each="data:${list}">											
											<td><img th:src="${data.headimgurl}" style="width: 50px;height: 50px" /> </td>
											<td th:text="${data.nickname}"></td>
											<!-- <td th:text="${data.subscribeTime}"></td> -->
											<td>
												<th:block th:if="${data.subscribe}==1">
													已关注
												</th:block>
												<th:block th:if="${data.subscribe}==0">
													取消关注
												</th:block>
											
											</td>
											<td>
												<select class="form-control" onchange="changeGroup(this)" >
													<th:block th:each="group:${groups}">
														<option th:text="${group.groupName}" th:value="${group.groupId}" th:selected="${data.groupid}==${group.groupId}"  ></option>
													</th:block>													
												</select>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
				</div>
			</div>
		</div>
		<div th:include="admin/common/footer::commonFooter"></div>
		<script th:src="@{/coustom/sys/fans.js}"></script>
				
</body>
</html>